﻿<common:LayoutAwarePage
    x:Name="pageRoot"
    x:Class="RuneMasterWin8.Pages.ScorePage"
    DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:RuneMasterWin8.Pages"
    xmlns:common="using:RuneMasterWin8.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Page.Resources>

        <!-- TODO: Delete this line if the key AppName is declared in App.xaml -->
        <x:String x:Key="AppName">My Application</x:String>
    </Page.Resources>

    <!--
        This grid acts as a root panel for the page that defines two rows:
        * Row 0 contains the back button and page title
        * Row 1 contains the rest of the page layout
    -->
    <Viewbox>

		<VisualStateManager.VisualStateGroups>

            <!-- Visual states reflect the application's view state -->
			<VisualStateGroup x:Name="ApplicationViewStates">
				<VisualState x:Name="FullScreenLandscape"/>
				<VisualState x:Name="Filled"/>

                <!-- The entire page respects the narrower 100-pixel margin convention for portrait -->
				<VisualState x:Name="FullScreenPortrait">
					<Storyboard>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
							<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>

                <!-- The back button and title have different styles when snapped -->
				<VisualState x:Name="Snapped">
					<Storyboard>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
							<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
						</ObjectAnimationUsingKeyFrames>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
							<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<Grid Height="768" Width="1366">
<!-- Back button and page title -->
			<Image Source="ms-appx:///Images/background_dark.png" Stretch="Fill"/>

        <!-- Back button and page title -->
			<Grid Margin="0,0,0,628">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto"/>
					<ColumnDefinition Width="*"/>
				</Grid.ColumnDefinitions>
				<Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
				<TextBlock x:Name="pageTitle" Grid.Column="1" Text="游戏纪录" Style="{StaticResource PageHeaderTextStyle}" FontFamily="Microsoft YaHei"/>
			</Grid>
			<Grid Margin="440,295,433,62">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="19*"/>
					<ColumnDefinition Width="10*"/>
				</Grid.ColumnDefinitions>
				<TextBlock HorizontalAlignment="Right" Margin="0,56,0,0" TextWrapping="Wrap" Text="单局最高得分 =" VerticalAlignment="Top" Foreground="Yellow" FontSize="32" Height="38" Width="225"/>
				<TextBlock x:Name="txtHighScore" HorizontalAlignment="Left" Margin="8,56,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Yellow" Grid.Column="1" Text="0" FontSize="32"/>
				<TextBlock HorizontalAlignment="Right" Margin="0,121,0,0" TextWrapping="Wrap" Text="最大连击次数 =" VerticalAlignment="Top" Foreground="#FFFFA200" FontSize="32" Height="38" Width="225"/>
				<TextBlock x:Name="txtMaxCombo" HorizontalAlignment="Left" Margin="8,121,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="#FFFFA200" Grid.Column="1" Text="0" FontSize="32"/>
				<TextBlock HorizontalAlignment="Right" Margin="0,183,0,0" TextWrapping="Wrap" Text="所有连击统计 =" VerticalAlignment="Top" Foreground="#FFFF6800" FontSize="32" Height="38" Width="222"/>
				<TextBlock x:Name="txtTotalCombo" HorizontalAlignment="Left" Margin="8,183,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="#FFFF6800" Grid.Column="1" Text="0" FontSize="32"/>
				<TextBlock HorizontalAlignment="Right" Margin="0,248,0,0" TextWrapping="Wrap" Text="单次移动最高得分 =" VerticalAlignment="Top" Foreground="#FF00DCFF" FontSize="32" Height="38" Width="289"/>
				<TextBlock x:Name="txtScoreByOne" HorizontalAlignment="Left" Margin="8,248,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="#FF00DCFF" Grid.Column="1" Text="0" FontSize="32"/>
				<TextBlock HorizontalAlignment="Right" Margin="0,311,0,0" TextWrapping="Wrap" Text="一次移动平均得分 =" VerticalAlignment="Top" Foreground="#FFC7C7C7" FontSize="32" Height="38" Width="289"/>
				<TextBlock x:Name="txtScorePerMove" HorizontalAlignment="Left" Margin="8,311,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="#FFC7C7C7" Grid.Column="1" Text="0" FontSize="32"/>
			</Grid>
			<TextBlock HorizontalAlignment="Center" Margin="493,204,489,0" TextWrapping="Wrap" Text="您的最高纪录" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontSize="64"/>

		</Grid>
	</Viewbox>
</common:LayoutAwarePage>
